# -*- coding: UTF-8 -*-

"""Help Module for Pyrc"""

import time

helpmsg = """*** Help Message ***
!beeseek \x03query\x03: Search on web
!bsk  \x03query\x03: Search on web
!google \x03query\x03: Search on web
!chatlog: Show info about chatlog for this chan
!chatlog on: Activate chatlog for this chan
!chatlog off: Deactivate chatlog for this chan
!chatlog publish: Publish log to ftp host
!help: Show this message"""

pending = time.time()

def help(pyrc,umask,dest,message):
    global pending
    if pending+30 < time.time():
        pending = time.time()
        for row in helpmsg.split("\n"):
            pyrc.msg(dest[0],row)

        
        
events = [
    ['PRIVMSG','(.+)!.+','(.+)','(!help)',help],
]
